var templateRequest = {
    /**
     * 根据模板所有标签信息
     * @param {type} option
     * @param {type} callback
     * @returns {undefined}
     */
    getAllTags: function (option, callback) {
        $.ajax({
            type: "POST",
            url: "/Studio/getTemplateTags",
            async: true,
            data: {},
            success: function (res) {
                if (typeof callback === 'function') {
                    callback(res);
                }
            }
        });
    },
    /**
     * 获取模板列表 
     * @param {type} option
     * @param {type} callback
     * @returns {undefined}
     */
    getTemplateList: function (option, callback) {
        $.ajax({
            type: "POST",
            url: "/Studio/getTemplateList",
            async: false,
            data: option,
            success: function (res) {
                if (typeof callback === 'function') {
                    callback(res);
                }
            }
        });
    }
};